import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/views/index'
import Lottery from '@/views/lottery'
import Lottery2 from '@/views/lottery2'
import Add from '@/views/add'
import Test from '@/views/test'

Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'Index',
            component: Index,
        },
        {
            path: '/lottery',
            name: 'Lottery',
            component: Lottery,
        },
        {
            path: '/lottery2',
            name: 'Lottery2',
            component: Lottery2,
        },
        {
            path: '/add',
            name: 'Add',
            component: Add,
        },
        {
            path: '/upload',
            name: 'Test',
            component: Test,
        }
    ]
})